package com.zzptc.sgz.shop.dao;

import com.zzptc.sgz.shop.vo.Product;
import com.zzptc.sgz.shop.vo.UserFoot;

import java.sql.SQLException;
import java.util.List;

public interface ProductDaoI {
	//得到所有商品
	List<Product> getAllproduct()throws SQLException;
	//新增商品
	int insert(Product product)throws SQLException;
	//删除商品
	int detele(int id)throws SQLException;
	//修改商品
	int update(Product product)throws SQLException;

	//获得用户足迹
	List<Product> getAllUserFoot(String uId)throws SQLException;

	//获得热门推荐
	List<Product> getHotRecommend(String uId) throws SQLException;

	//根据商品ID获取商品信息
	Product getproduct(int pid)throws SQLException;
}
